#include<iostream>
#include<string>
using namespace std;
int*f()
{
	int *p;
	p=new int(10);
	return p;
}
int main()
{
	int *p=f();
	cout<<*p<<endl;
	cout<<*p<<endl;
	 system("pouse");
	 return 0;
}
/*
int main()
{
	string a;
	a="aaabbb";
	a=a+'c';
	cout<<a<<endl;
	system("pause");
	return 0;
}
int main()
{
	char a[10];
	int *p=(int*)a;
	*p=-100,*(p+1)=2;
	printf("%d %d %d %d",a[0],a[1],a[2],a[3]);
	return 0;
}*/